package MouseInheritage;

public class MouseWithWheel extends Mouse{

    /*This method describes the reaction on the mouse wheel turn
        turnDirection: true - forward; false - backward.
        qty: the number of wheel steps.
    */
    public void TurnWheel(boolean turnDirection, int qty) {
        for (int i = 0; i < qty; i++) {
            if (turnDirection){
                System.out.println("Turn wheels forward - " + (i + 1));
            } else {
                System.out.println("Turn wheels backward - " + (i + 1));
            }
        }
    }

    //This method handles the event click on the left mouse button
    public void LeftButtonClick() {
        System.out.println("Left click!");
    }

    //This method handles the event click on the right mouse button
    public void RightButtonClick() {
        System.out.println("Right click!");
    }
}
